import {useUserStore} from '../pinia/user'



const baseUrl = 'http://localhost:5000'
 export default {
   async getMenu(){
        const store =useUserStore()
         const response = await fetch(`${baseUrl}/menu?username=${store.getToken.username}`)
         return  await response.json()
    },
    async getTokenInfo(param:string){
        const response = await fetch(`${baseUrl}/user?username=${param}`)
        return await response.json()
    }
}

